package brain;

import java.util.ArrayList;
import java.util.Scanner;
import brain.DateTime;

/**
 * 
 * @author JRVamplew
 *
 */
public class Communicate {
	
	public static void textTalk() {
		//Create a new scanner
		Scanner input = new Scanner(System.in);
		
		ArrayList<ArrayList<String>> WorkingMemory = new ArrayList<ArrayList<String>>();
		ArrayList<String> instantMemory = new ArrayList<String>();
		
		
		try {
			String outputText = "I am ready to recieve text communications.";
			System.out.println(outputText);
			String eventType = "statement";
			String subjectName = "";
			String eventData = outputText;
			instantMemory.add(subjectName);
			instantMemory.add(eventData);
			instantMemory.add(eventType);
			instantMemory.add(DateTime.date());
			instantMemory.add(DateTime.time());
			
			WorkingMemory.add(instantMemory);
			
			instantMemory = new ArrayList<String>();
			
			eventData = input.next();
			eventType = "input";
			subjectName = "";
			instantMemory.add(subjectName);
			instantMemory.add(eventData);
			instantMemory.add(eventType);
			instantMemory.add(DateTime.date());
			instantMemory.add(DateTime.time());
			
			WorkingMemory.add(instantMemory);
			
			
					
					
					
					
					
					
			
			
			
			
			
			
			
			
		} catch (Exception e) {
			System.out.println("Error in UI!: ");
			e.printStackTrace();
		}
		
		//Close the scanner
		input.close();
		
	}

}
